package com.JZ.QM.service;

import com.JZ.QM.common.entity.UserAccountEntity;
import com.JZ.QM.common.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @author: cyc
 * @email cyc@gmail.com
 * @date: 2020/6/26 18:06
 */
public interface UserAccountService extends IService<UserAccountEntity> {
    /**
     * 分页查询
     * @param params
     * @return
     * @throws Exception
     */
    PageUtils queryPage(Map<String, Object> params) throws Exception;

    /**
     * 通过用户id获取账户信息
     * @param userId 用户id
     * @return
     */
    UserAccountEntity getAccount(Long userId);

    /**
     * 开通平台账户
     * @param userId 用户的id
     * @param userPassword 用户设置的平台密码
     * @return
     */
    boolean openUserAccount(Long userId,String userPassword);
}
